package com.ruoyi.cat.service.impl;

import java.util.List;

import com.ruoyi.cat.domain.CatComplaint;
import com.ruoyi.cat.mapper.CatComplaintMapper;
import com.ruoyi.cat.service.ICatComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 投诉意见Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-04
 */
@Service
public class CatComplaintServiceImpl implements ICatComplaintService
{
    @Autowired
    private CatComplaintMapper catComplaintMapper;

    /**
     * 查询投诉意见
     * 
     * @param id 投诉意见主键
     * @return 投诉意见
     */
    @Override
    public CatComplaint selectCatComplaintById(Long id)
    {
        return catComplaintMapper.selectCatComplaintById(id);
    }

    /**
     * 查询投诉意见列表
     * 
     * @param catComplaint 投诉意见
     * @return 投诉意见
     */
    @Override
    public List<CatComplaint> selectCatComplaintList(CatComplaint catComplaint)
    {
        return catComplaintMapper.selectCatComplaintList(catComplaint);
    }

    /**
     * 新增投诉意见
     * 
     * @param catComplaint 投诉意见
     * @return 结果
     */
    @Override
    public int insertCatComplaint(CatComplaint catComplaint)
    {
        return catComplaintMapper.insertCatComplaint(catComplaint);
    }

    /**
     * 修改投诉意见
     * 
     * @param catComplaint 投诉意见
     * @return 结果
     */
    @Override
    public int updateCatComplaint(CatComplaint catComplaint)
    {
        return catComplaintMapper.updateCatComplaint(catComplaint);
    }

    /**
     * 批量删除投诉意见
     * 
     * @param ids 需要删除的投诉意见主键
     * @return 结果
     */
    @Override
    public int deleteCatComplaintByIds(Long[] ids)
    {
        return catComplaintMapper.deleteCatComplaintByIds(ids);
    }

    /**
     * 删除投诉意见信息
     * 
     * @param id 投诉意见主键
     * @return 结果
     */
    @Override
    public int deleteCatComplaintById(Long id)
    {
        return catComplaintMapper.deleteCatComplaintById(id);
    }
}
